#define _CRT_SECURE_NO_WARNINGS 
#include <stdio.h>
int main()
{
	int a = 0, b = 0, c = 0;
	scanf("%d %d %d", &a, &b, &c);
	if (a < b)
	{
		int q = a;
		a = b;
		b = q;
	}
	if (a < c)
	{
		int q = a;
		a = c;
		c = q;
	}
	if (b < c)
	{
		int q = b;
		b = c;
		c = q;
	}
	printf("%d %d %d,", a, b, c);
	return 0;
}